/*  # 2 : read bite from stream : ReadBytes.java */

import java.io.*;
public class ReadBytes {
	public static void main(String[] args){
		int b;
		try {
			File f = new File("C:/Other/Java/Prog/Task/Home_task/src/ReadBytes.java");
			FileInputStream is = new FileInputStream(f);
			while ((b = is.read()) != -1){
				//consol
				System.out.println("bite was read = " + b);
				}
			is.close(); 
			}
		catch (IOException e){
			System.out.println("Exception: " + e);
			}
		}
	}
